package com.bwie.parkdemo.mvvm.model;

import com.bwie.lib_core.base.BaseEntity;
import com.bwie.lib_core.mvvm.base.BaseModel;
import com.bwie.lib_core.network.HttpRetrofitFactory;
import com.bwie.lib_core.network.HttpType;

import io.reactivex.Observable;
import okhttp3.RequestBody;

public class AddPunchModel extends BaseModel {
    @Override
    public Observable<BaseEntity> request(RequestBody... bodyes) {
        return HttpRetrofitFactory.getInstance().factory(HttpType.TOKENINTERFACE)
                .getRetrofit().create(Api.class).requestAddPunch(bodyes[0]);
    }

    @Override
    public void cleared() {

    }
}
